package org.news.web.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 点赞功能对象 likes
 *
 * @author Gu Ci
 * @date 2024-04-03
 */
@Data
@TableName("likes")
public class Likes{

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 点赞ID
     */
    @TableId(value = "like_id",type = IdType.AUTO)
    private Long likeId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 新闻ID
     */
    private Long newsId;

    /**
     * 记录点赞时间
     */
    private Date creationTime;


}
